package com.ltkj.baseplatform.domain;

import com.ltkj.common.core.annotation.Excel;
import com.ltkj.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 赛事分类对象 ser_game_type
 * 
 * @author ruoyi
 * @date 2023-09-13
 */
@ApiModel(value = "赛事分类")
public class SerGameType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 赛事ID */
    @ApiModelProperty("赛事ID")
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    @ApiModelProperty("分类名称")
    private String typeName;

    /** 上级分类ID */
    @Excel(name = "上级分类ID")
    @ApiModelProperty("上级分类ID")
    private Long parentId;

    /** 是否删除 */
    @ApiModelProperty("是否删除")
    private String isDel;

    /** 子类型 */
    private List<SerGameType> children = new ArrayList<>();

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    public List<SerGameType> getChildren() {
        return children;
    }

    public void setChildren(List<SerGameType> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeName", getTypeName())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("isDel", getIsDel())
            .append("remark", getRemark())
            .toString();
    }
}
